<template>
	<view class="container">
		<view class="background-img">
			<view class="main">
				<nav-bar :idx="2"></nav-bar>
				
			</view>
		</view>
	</view>
</template>

<script>
	import navBar from '@/components/nav-bar/nav-bar.vue'
	
	export default {
		components: {
			navBar
		},
		data() {
			return {
				
			}
		},
		methods: {
		}
	}
</script>

<style>
.container {
	height: auto;
	min-height: 100vh;
}

.background-img {
	background-image: url(/static/background.png);
	background-repeat: repeat-y;
	background-size: 100% auto;
	min-height: 100vh;
	height: auto;
}

.content {
	padding: 40rpx;
	max-width: 1200rpx;
	margin: 0 auto;
}

.resource-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300rpx, 1fr));
	gap: 30rpx;
	padding: 20rpx;
}

.resource-card {
	background: #fff;
	border-radius: 16rpx;
	overflow: hidden;
	box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease;
}

.resource-card:hover {
	transform: translateY(-6rpx);
}

.resource-image {
	width: 100%;
	height: 200rpx;
	object-fit: cover;
}

.resource-info {
	padding: 20rpx;
}

.resource-title {
	font-size: 32rpx;
	font-weight: 600;
	color: #333;
	margin-bottom: 10rpx;
	display: block;
}

.resource-desc {
	font-size: 26rpx;
	color: #666;
	margin-bottom: 20rpx;
	display: block;
}

.resource-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.resource-type {
	font-size: 24rpx;
	color: #4a6572;
	background: #f0f7ff;
	padding: 4rpx 16rpx;
	border-radius: 20rpx;
}

.resource-size {
	font-size: 24rpx;
	color: #888;
}
</style> 